<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title>校 友 汇</title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<!-- BEGIN GLOBAL MANDATORY STYLES -->
        <link href="<?php echo  $this->module->assetsUrl ?>/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl ?>/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl ?>/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl ?>/css/style-metro.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl ?>/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl ?>/css/style-responsive.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo  $this->module->assetsUrl ?>/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>
	<link href="<?php echo  $this->module->assetsUrl ?>/css/uniform.default.css" rel="stylesheet" type="text/css"/>
	<!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN PAGE LEVEL STYLES -->
	<link href="<?php echo  $this->module->assetsUrl ?>/css/login.css" rel="stylesheet" type="text/css"/>
	<!-- END PAGE LEVEL STYLES -->
	<link rel="shortcut icon" href="<?php echo  $this->module->assetsUrl ?>/image/favicon.ico" />
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="login">
	<!-- BEGIN LOGO -->
	<div class="logo">
		<img src="<?php echo  $this->module->assetsUrl ?>/image/logo-big.png" alt="" /> 
	</div>
	<!-- END LOGO -->
	<!-- BEGIN LOGIN -->
	<div class="content">
                 <div class="form-actions">
                        <?php echo Yii::app()->user->getFlash('login_admin_info'); ?>

                         <h4 class="header blue lighter bigger" algin="center">
                            <i class="icon-coffee green"></i>
                            
                            <?php if($this->getAction()->getId() =='adminlogin'):echo "校友会管理系统欢迎您!"?>
                            <?php else:echo "校友会总会欢迎您!"?>
                            <?php endif;?>
                            
                        </h4>
                        <div class="space-6"></div>
                </div>
		<!-- BEGIN LOGIN FORM -->      
                 
<?php 
$form=$this->beginWidget(
	'CActiveForm', array(
	'id'=>'login-form',
	//'enableAjaxValidation'=>true,
        'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions' => array('enctype'=>'multipart/form-data'),
       // 'action'=>array('/admin'),
)); 
?>	
             
                                                    <fieldset>
                                                        <div class="control-group">
                                                            <label class="control-label visible-ie8 visible-ie9">用户名</label>
                                                                <div class="controls">
                                                                   <div class="input-icon left">
                                                                       <i class="icon-user"></i>
                                                                        <?php echo $form->textField($model,'username' , array('class'=>'m-wrap placeholder-no-fix','placeholder'=>'用户名')); ?>     
                                                                         <?php echo $form->error($model,'username'); ?>
                                                                         
                                                                    </div>
                                                                </div>                                                
                                                        </div>
                                                        
                                                        <div class="control-group">
                                                            <label class="control-label visible-ie8 visible-ie9">密码</label>
                                                                <div class="controls">
                                                                   <div class="input-icon left">
                                                                       <i class="icon-user"></i>
                                                                        <?php echo $form->passwordField($model,'password',array('class'=>'m-wrap placeholder-no-fix','placeholder'=>'密码')); ?>
                                                                        <?php echo $form->error($model,'password'); ?>
                                                                         
                                                                    </div>
                                                                </div>                                                
                                                        </div>
                                                        
                                                       
                                                        <?php if(CCaptcha::checkRequirements()): ?>
                                                      
                                                        
                                                        <div class="form-actions">
                                                                 <?php $this->widget('CCaptcha'); ?>
                                                                
                                                                <?php echo CHtml::activeTextField($model,'verifyCode',array('tabindex'=>1)); ?>  
                                                                <?php echo $form->error($model,'verifyCode'); ?>          
                                                        </div>
                                                        
                      
                                                        
                                                        <?php endif; ?>
                                                        
                                                        
                                                        <div class="form-actions">
				<label class="checkbox">
				<input type="checkbox" name="remember" value="1"/> Remember me
				</label>
				<button type="submit" class="btn green pull-right">
				Login <i class="m-icon-swapright m-icon-white"></i>
				</button>            
			</div>
                       
                                                      
                                                    </fieldset>
                                        <?php $this->endWidget(); ?>	

	</div>
	<!-- END LOGIN -->
	<!-- BEGIN COPYRIGHT -->
	<div class="copyright">
		2014 &copy; xyh. Admin Dashboard.
	</div>
	<!-- END COPYRIGHT -->
	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
	<!-- BEGIN CORE PLUGINS -->
	<script src="<?php echo  $this->module->assetsUrl ?>/js/jquery-1.10.1.min.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl ?>/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
	<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
	<script src="<?php echo  $this->module->assetsUrl ?>/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>      
	<script src="<?php echo  $this->module->assetsUrl ?>/js/bootstrap.min.js" type="text/javascript"></script>
	<!--[if lt IE 9]>
	<script src="media/js/excanvas.min.js"></script>
	<script src="media/js/respond.min.js"></script>  
	<![endif]-->   
	<script src="<?php echo  $this->module->assetsUrl ?>/js/jquery.slimscroll.min.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl ?>/js/jquery.blockui.min.js" type="text/javascript"></script>  
	<script src="<?php echo  $this->module->assetsUrl ?>/js/jquery.cookie.min.js" type="text/javascript"></script>
	<script src="<?php echo  $this->module->assetsUrl ?>/js/jquery.uniform.min.js" type="text/javascript" ></script>
	<!-- END CORE PLUGINS -->
	<!-- BEGIN PAGE LEVEL PLUGINS -->
	<script src="<?php echo  $this->module->assetsUrl ?>/js/jquery.validate.min.js" type="text/javascript"></script>
	<!-- END PAGE LEVEL PLUGINS -->
	<!-- BEGIN PAGE LEVEL SCRIPTS -->

	<!-- END PAGE LEVEL SCRIPTS --> 

<script type="text/javascript">
        
        
    $(document).ready(function() {
        
       
        $("#login").click(function (event) {
		    $('#login-form').submit();
        });
    });
</script> 
        
        
        </body>
<!-- END BODY -->









</html>